package org.example.service.model;

import org.hibernate.validator.constraints.NotBlank;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

public class UserModel {//用户的基本信息
    private Integer id;
    @NotBlank(message = "用户名不能为空")
    private String name;
    @NotNull(message = "性别不可不填")
    private Byte gender;
    @NotNull(message = "年龄不能为空")
    @Min(value = 0,message = "年龄必须大于0岁")
    @Max(value = 150,message = "年林必需小于150岁")
    private Integer age;
    @NotBlank(message = "手机号不能为空")
    private String teiphon;
    private String registerMode;
    private String thridParty;
    @NotBlank(message = "密码不能为空")
    private String encrptPassword;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Byte getGender() {
        return gender;
    }

    public void setGender(Byte gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getRegisterMode() {
        return registerMode;
    }

    public void setRegisterMode(String registerMode) {
        this.registerMode = registerMode;
    }

    public String getThridParty() {
        return thridParty;
    }

    public void setThridParty(String thridParty) {
        this.thridParty = thridParty;
    }

    public String getEncrptPassword() {
        return encrptPassword;
    }

    public void setEncrptPassword(String encrptPassword) {
        this.encrptPassword = encrptPassword;
    }

    public String getTeiphon() {
        return teiphon;
    }

    public void setTeiphon(String teiphon) {
        this.teiphon = teiphon;
    }
}
